﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<style type="text/css">
		
		#user-nav{
			background-image: url("${pageContext.request.contextPath}/resource/images/top_bg.png") !important;
		}
	</style>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/resource/css/head.css">
<div id="user-nav" class="navbar navbar-inverse" style="background: #222d32;height: 55px;margin-left: 0px">
<%--  <ul class="nav" id="J_common_header_menu" style="width: auto; margin: 0px;">
   <c:forEach items="${models}" var="model">
    <li class="top-menu-item" id="head_menu_${model.modelId}" ><a title="" href="javascript:;"  onclick="top_menu_click('${model.modelId}')" ><i class="icon ${model.modelIcon}"></i>  <span class="text">${model.name}</span></a></li>
  	</c:forEach>
   	<li class="top-menu-item" style="float: right" >  <a href="${pageContext.request.contextPath}/logout" class="pull-right"><i class="icon icon-off"></i> 退出</a></li>
 	<li class="top-menu-item" style="float: right" >  <a href="javascript:;"  onclick="siMenu('zuser_info','lmuser_info','个人资料','${pageContext.request.contextPath}/user/info')" class="pull-right">	<i class="icon-user text-info glyphicon"></i>${sessionUser.name }</a></p></li>
  </ul> --%>
   <ul class="nav" id="J_common_header_menu" style="width: auto; margin: 0px;">
   <li class="top-menu-item" style="position: relative;display: block;width: 189px;height: 95px;">
   	<img src="${pageContext.request.contextPath}/resource/images/index/left1.png" class="img-circle" 
		style="width: 189px;height: 95px;border-radius: 0px;position: absolute;top: 0px;left: 0px;">
   </li>
   <li class="top-menu-item" style="display: block;width: 623px;height: 55px;position: relative;">
   	<img src="${pageContext.request.contextPath}/resource/images/index/top1.png" class="img-circle" 
		style="width:623px;height:55px;border-radius: 0px;">
		<h4 style="position: absolute;top: 0px;left: 100px;font-size: 30px;color: #FFFFFF;font-weight: bolder;">杭州富阳新塑机械有限公司</h4>
   </li>
   	
 	<li class="top-menu-item" style="display: block;width:calc(100vw - 812px);height: 55px;background-repeat: repeat-x;background-image: url('${pageContext.request.contextPath}/resource/images/index/right1.png');" > 
 		<span style=";padding: 2px 15px;font-size: 16px;font-weight: bolder; line-height: 50px;color: #FFF;cursor:pointer;" href="javascript:void(0);" onclick="window.location.href='${pageContext.request.contextPath}/logout';" class="pull-right"><i class="icon icon-off"></i> 退出</span>
  <span style="padding: 2px 15px;font-size: 16px;font-weight: bolder; line-height: 50px;color: #FFF;cursor:pointer;" href="javascript:void(0);"  onclick="siMenu('zuser_info','lmuser_info','个人资料','${pageContext.request.contextPath}/user/info')" class="pull-right">	<i class="icon icon-user "></i>${sessionUser.name }</span>
  	</li>
  </ul>
</div>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/js/myjs/head.js"></script>
<script type="text/javascript">
$(function(){
	$('.dropdown-toggle').dropdown();
	var t = getCookie("changeMenu");
	if(null==t||''==t||t=="undefined" ){
		$("#J_common_header_menu li.top-menu-item:first").trigger("click");
	}else{
		top_menu_click(t);
	}
});
function top_menu_click(t){
	setCookie("changeMenu",t);
	$("#J_common_header_menu li.top-menu-item").removeClass("openmenu");
	$("#head_menu_"+t).addClass("openmenu");
	//$("#sidebar .menuLi[menuType!='"+t+"']").css("display","none");
	//$("#sidebar .menuLi[menuType='"+t+"']").css("display",""); 
	
}
function changeCourse(fun){//{ShowCloseButton:false}
	openDiag('${pageContext.request.contextPath}/org/science/toChange','切换科目',600,400,true,fun);
}
</script>
	